/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Rules;

import org.htmlparser.Tag;
import Database.ResultTableItem;

/**
 *
 * @author Sinem
 */
public abstract class BaseRule
{
    private boolean m_bRuleViolated;  
    private int m_nLineNumber;
    public String sWebPage;
    
    public Tag m_Tag;

    public BaseRule()
    {
        m_bRuleViolated = false;        
        m_nLineNumber = -1;
    }
    public boolean isRuleViolated()
    {
        return m_bRuleViolated;
    }

    public void setRuleViolation()
    {
        m_bRuleViolated = true;        
    }   
    public void setLineNumber(int nLineNumber)
    {
        m_nLineNumber = nLineNumber;
    }
    public void setWebPage(String fileName)
    {
        sWebPage = fileName;
    }
    public int getLineNumber()
    {
        return m_nLineNumber;
    }

    public boolean writeResult(ResultTableItem result)
    {
        return true;
    }
    public void check(){};
    
}
